package com.dsteiner.xelavos.client.event;

import com.dsteiner.widgets.client.domain.ModelObject;
import com.dsteiner.widgets.client.event.Event;

public class DeleteObjectEvent implements Event, Confirmable {

	private final ModelObject modelObject;
	private boolean confirmed;
	
	public DeleteObjectEvent(ModelObject modelObject) {
		this.modelObject = modelObject;
	}
	public DeleteObjectEvent(ModelObject modelObject, boolean confirmed) {
		this.modelObject = modelObject;
		this.confirmed = confirmed;
	}
	
	public ModelObject getModelObject() {
		return modelObject;
	}

	public boolean isConfirmed() {
		return confirmed;
	}
	public void setConfirmed(boolean confirmed) {
		this.confirmed = confirmed;
	}
}
